package com.itheima.entry;

import java.util.Scanner;

/*
入口类
 */
public class Entry {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        StudentCaoZuo caozuo= new StudentCaoZuo();
        while (true){
            System.out.println("--------欢迎来到学生管理系统--------");
            System.out.println("1 添加学生");
            System.out.println("2 删除学生");
            System.out.println("3 修改学生");
            System.out.println("4 查看学生");
            System.out.println("5 退出");
            System.out.println("请输入您的选择:");
            String choice = sc.next();
            switch (choice){
                case "1":
                    caozuo.add();
                    break;
                case "2":
                    caozuo.delete();
                    break;
                case "3":
                    caozuo.update();
                    break;
                case "4":
                    caozuo.find();
                    break;
                case "5":
                    break;
                default:
                    System.out.println("输入有误");
            }

        }
    }



}
